﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Numbers.Arithmatic
{
    /// <summary>
    /// info about an operand so we can deal with back-propagation.
    /// </summary>
    public struct Operand
    {
        /// <summary>
        /// The operand value.
        /// </summary>
        public Value v;

        /// <summary>
        /// If we have to back-propagate - is this value fixed?
        /// </summary>
        public bool isFixed;

        public Operand(Value v1)
        {
            v = v1;
            isFixed = false;
        }

        public Operand(Value v1, bool isFix)
        {
            v = v1;
            isFixed = isFix;
        }
    }
}
